package com.awesome.spring.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @program: awesome-spring
 * @description:
 * @author: Alex Wu
 * @createDate: 2025-02-11 13:56
 **/

@Slf4j
@Component
@RocketMQMessageListener(topic = "%DLQ%tx-order-consumer-group", consumerGroup = "DLQConsumerGroup")
public class DeadLetterQueueConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        log.info("业务处理错误，人工手动干预: {}", message);
    }
}
